package com.jjsj.mall.shop.mapper;

import com.jjsj.mall.shop.entity.YoshopOrderAddress;

import java.util.List;

/**
 * 订单地址Mapper接口
 *
 * @author www.joolun.com
 * @date 2022-10-24
 */
public interface YoshopOrderAddressMapper {
    /**
     * 查询订单地址
     *
     * @param orderAddressId 订单地址ID
     * @return 订单地址
     */
    public YoshopOrderAddress selectYoshopOrderAddressById(String orderAddressId);

    /**
     * 查询订单地址列表
     *
     * @param yoshopOrderAddress 订单地址
     * @return 订单地址集合
     */
    public List<YoshopOrderAddress> selectYoshopOrderAddressList(YoshopOrderAddress yoshopOrderAddress);

    /**
     * 新增订单地址
     *
     * @param yoshopOrderAddress 订单地址
     * @return 结果
     */
    public int insertYoshopOrderAddress(YoshopOrderAddress yoshopOrderAddress);

    /**
     * 修改订单地址
     *
     * @param yoshopOrderAddress 订单地址
     * @return 结果
     */
    public int updateYoshopOrderAddress(YoshopOrderAddress yoshopOrderAddress);

    /**
     * 删除订单地址
     *
     * @param orderAddressId 订单地址ID
     * @return 结果
     */
    public int deleteYoshopOrderAddressById(String orderAddressId);

    /**
     * 批量删除订单地址
     *
     * @param orderAddressIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteYoshopOrderAddressByIds(String[] orderAddressIds);
}
